package com.shiliuzi.www.pojo.dto.user;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserSetRoleDto {

    /**
     * 转换角色
     */
    @NotNull(message = "转换角色不能为空")
    @Range(max = 3l, min = 2l)
    private Integer convertRole;

    /**
     * 目标用户学号
     */
    private String number;
}
